import request from '@/utils/request'

//列表
export function channelLists(params?: any) {
    return request.get({ url: '/channel.channel/lists', params })
}

// 添加
export function channelAdd(params: any) {
    return request.post({ url: '/channel.channel/add', params })
}

// 编辑
export function channelEdit(params: any) {
    return request.post({ url: '/channel.channel/edit', params })
}


// 删除
export function channelDelete(params: any) {
    return request.post({ url: '/channel.channel/delete', params })
}


// 详情
export function channelDetail(params: any) {
    return request.get({ url: '/channel.channel/detail', params })
}

// 渠道申请详情
export function channelApplyInfo(params: any) {
    return request.get({ url: '/channel.channel/applyInfo', params })
}

// 设置是否启用状态
export function channelStatus(params: any) {
    return request.post({ url: '/channel.channel/updateStatus', params })
}

//发起签署
export function sendSign(params: any) {
    return request.post({ url: '/channel.channel/sendSign', params })
}